package com.qfedu.gytv.dao;

import com.qfedu.gytv.entity.Video;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * @description: 码起 自动生成代码
 * @author: my
 * @create: 2020-09-16 20:01:16
 */
public interface VideoDao {
    @Insert("insert into tb_video (title,address,gid,imgPath,uid,createTime) values(#{title},#{address},#{gid},#{imgPath},#{uid},#{createTime})")
    int insert(Video video);

    @Delete("delete from tb_video where id = #{id}")
    int deleteById(int id);

    @Select("select * from tb_video")
    Video all();
}
